﻿function drawGraph() {
    google.load('visualization', '1', {packages:['corechart']}); 
    google.setOnLoadCallback(drawChart); 

    function drawChart(gTable) {

        var data = new google.visualization.DataTable();
        data.addColumn('number', 'Probability'); data.addColumn('number', 'Probalidade');

        data.addRows([gTable]);

        //var code Replace('[,' , '[' );

        var options = {
            title: 'Estimativa', width: 1000, height: 380,
            vAxis: { title: 'Probalidade', textStyle: { color: '#005500', fontSize: '12', paddingRight: '100', marginRight: '100' } },
            hAxis: { title: 'Horas', textStyle: { color: '#005500', fontSize: '12', paddingRight: '100', marginRight: '100' } }
        };

        var chart = new google.visualization.LineChart(document.getElementById('chart_div'));
        chart.draw(data, options);
    }
}